package 蚂蚁课堂;

import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * LinkedBlockingQueue：链表队列，插入和删除是2把锁，比ArrayBlockingQueue有性能优势
 * 无边界队列，默认容器最大的容量是Integer.MAX_VALUE 。
 */
public class LinkedBlockingQueueDemo {


    static LinkedBlockingQueue linkedBlockingQueue=new LinkedBlockingQueue();
    public static void main(String[] args) throws InterruptedException {
        linkedBlockingQueue.put(1);

    }
}
